Skip to content

Conversation

@tractorss
Copy link
Contributor

@tractorss tractorss commented Feb 1, 2024

closes #1447

  • updated the ipfs urls to be standard ("ipfs://")
  • added fallback for old uri's

PR-Codex overview

This PR focuses on updating the IPFS URLs in the codebase.

Detailed summary

  • uploadToIPFS.ts: Changed the format of the IPFS URL pushed to cids array.
  • getIpfsUrl.ts: Added a new utility function getIpfsUrl to format IPFS URLs.
  • useIPFSQuery.ts: Updated the fetch URL with the formatted IPFS path.
  • EvidenceCard.tsx: Updated the URL of the attachment file.
  • Policies.tsx: Updated the URLs of the attachment and dispute policy.
  • DisputeTemplateView.tsx: Updated the URL of the dispute policy.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@netlify
Copy link

netlify bot commented Feb 1, 2024

Deploy Preview for kleros-v2 ready!

Name Link
🔨 Latest commit e15dab0
🔍 Latest deploy log https://app.netlify.com/sites/kleros-v2/deploys/65bd0e8914ffbe00089002c6
😎 Deploy Preview https://deploy-preview-1471--kleros-v2.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

alcercu
alcercu previously approved these changes Feb 2, 2024
Copy link
Contributor

@alcercu alcercu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tractorss tractorss marked this pull request as ready for review February 2, 2024 14:53
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit e15dab0 and detected 0 issues on this pull request.

View more on Code Climate.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@alcercu alcercu added this pull request to the merge queue Feb 2, 2024
Merged via the queue into dev with commit 35dbd95 Feb 2, 2024
@jaybuidl jaybuidl deleted the chore(web)/standard-ipfs-url branch October 8, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use standard IPFS URIs

3 participants